package com.boyunv.iterator.example02;
/*
 *@description
 *
 *@author boyunv
 *@create 2023/9/1 7:22
 *@version 1.0
 */

public class TopicList implements ListList<Topic>{
    
    private Topic[] topics;
    
    public TopicList(Topic[] topics) {
        this.topics = topics;
    }
    
    @Override
    public IteratorIterator<Topic> iterator() {
        return new TopicIterator(topics);
    }
}
